<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Move all data from a buffer provided to the current instance of EventBuffer</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventbuffer.add.html">EventBuffer::add</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventbuffer.appendfrom.html">EventBuffer::appendFrom</a></div>
 <div class="up"><a href="class.eventbuffer.html">EventBuffer</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventbuffer.addbuffer" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventBuffer::addBuffer</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventBuffer::addBuffer</span> &mdash; <span class="dc-title">Move all data from a buffer provided to the current instance of EventBuffer</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventbuffer.addbuffer-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span> 
   <span class="methodname"><strong>EventBuffer::addBuffer</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbuffer.html" class="type EventBuffer">EventBuffer</a></span>
     <code class="parameter">$buf</code>
   </span>
   )</div>

  <p class="para rdfs-comment">
   Move all data from the buffer provided in
   <em><code class="parameter">buf</code></em>
   parameter to the end of current
   <a href="class.eventbuffer.html" class="classname">EventBuffer</a>
   . This is a destructive add. The data from one buffer moves into the other
   buffer. However, no unnecessary memory copies occur.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventbuffer.addbuffer-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">buf</code></em>
    </dt>

    <dd>

     <p class="para">
      The source EventBuffer object.
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventbuffer.addbuffer-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success. Otherwise <strong><code>FALSE</code></strong>.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-eventbuffer.addbuffer-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <span class="methodname"><a href="eventbuffer.add.html" class="methodname" rel="rdfs-seeAlso">EventBuffer::add()</a> - Append data to the end of an event buffer</span>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventbuffer.add.html">EventBuffer::add</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventbuffer.appendfrom.html">EventBuffer::appendFrom</a></div>
 <div class="up"><a href="class.eventbuffer.html">EventBuffer</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
